package ooday03.person;

public class Test {
    public static void main(String[] args) {
        Teacher t = new Teacher("YiYi",18,"H","老师",1);
        t.sayHi();
        t.eat();
        t.sleep();
        t.teach();

        Doctor d = new Doctor("YiYi",18,"H","医生","主治医师");
        d.sayHi();
        d.eat();
        d.sleep();
        d.heal();

        Student s = new Student("YiYi",18,"H","同学",1,"翻斗花园5班");
        s.sayHi();
        s.swim();
        s.eat();
        s.sleep();
        s.study();




    }
}
